package com.margo.project.web.mvcconfig.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 1) @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")   2020-06-08 14:40 表单提交会报错
 *  	对 @RequestBody 注解传参无效
 * 2) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 2020-06-08 14:40 这种格式会报错
 *  	@RequestBody 传参
 * @author fangxingbang
 *
 */
public class MargoInitbinderVO {
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date checkDate;

	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	@Override
	public String toString() {
		return "MargoInitbinderVO [checkDate=" + checkDate + "]";
	}
	
}
